/*
 * @Author: liqiang liqiang@hacint.com.cn
 * @Date: 2023-08-18 07:40:32
 * @LastEditors: liqiang liqiang@hacint.com.cn
 * @LastEditTime: 2023-08-19 15:02:48
 * @FilePath: \WireTest4096 V1.01.01\MidWare\DataTable\DataTable.c
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * @file DataTable.c
 * @author liqiang (liqiang@hacint.com.cn)
 * @brief 
 * @version 1.0.0
 * @date 2023-08-18
 * 
 * 
 */

#include "DataTable.h"
#include "PCCommand.h"

CommData mCommData __attribute__((at(0XC0000000)));


PCCommand_Type  PC_Command_Current;





/**
 * @brief Get the Comm Data Adr object
 * 
 * @return CommData* 
 */
 CommData*  GetCommDataAdr(void){

        return  &mCommData;
 }
/**
 * @brief index相关操作的函数
 * 
 */
 
unsigned    short   GetAccessoryArrayIndex(void){  
    return  0;
}
 void	ResetAccessoryIndex(void){
 

}
void    ResetCompressDataIndex(void){

}




 /**
  * @brief Set the Complete Status object
  * 
  * @param status 目前是3中状态
  * @return * void 
  */
void    SetCompleteStatus(enum	DevStatus status){
        CommData*   pcommData;
        pcommData   =   GetCommDataAdr();
        pcommData->DevStauts    =   status;
        

}


PCCommand_Type    GetCurrentPCCmd(void){ 
        return PC_Command_Current;
}
void    SetCurrentPCCmd(PCCommand_Type cmd){    
        PC_Command_Current = cmd   ; 
}

unsigned int GetCurrentPCCmdStatus(void){  
        return PC_Command_Current.status;
}  
 

void    SetCurrentPCCmdStatus(void){
        PC_Command_Current.status   = 1; 
}
void    ResetCurrentPCCmdStatus(void){
        PC_Command_Current.status   = 0; 
}

 






